package com.itheima.tliassystem.aspect;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
//@Aspect
@Order(666)
public class Aspec2 {
    @Before("com.itheima.tliassystem.aspect.AspectDemo1.haha()")
    public void before(){
        System.out.println("Aspect2 前置通知方法");
    }
    @After("com.itheima.tliassystem.aspect.AspectDemo1.haha()")
    public void after(){
        System.out.println("Aspect2 后置通知方法");
    }
}
